package com.example.blades.myintentreceiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

public class OtherActivity extends BroadcastReceiver {


    @Override
    public void onReceive(Context context, Intent intent) {
        //从Intent当中根据key取得value
        String value=intent.getStringExtra("testIntent");
        Log.e("IntentReceiver-->Test",value);
    }
}
